Skip to content

feat: Added debounce utility functions#58

Merged
klmhyeonwoo merged 2 commits intomainfrom
feature/util-workspace
Oct 21, 2025
Merged

feat: Added debounce utility functions#58
klmhyeonwoo merged 2 commits intomainfrom
feature/util-workspace

Conversation

@klmhyeonwoo
Copy link
Copy Markdown
Member

@klmhyeonwoo klmhyeonwoo commented Oct 21, 2025

closes: #18

@klmhyeonwoo klmhyeonwoo self-assigned this Oct 21, 2025
Copilot AI review requested due to automatic review settings October 21, 2025 07:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a debounce utility function to delay function execution until a specified time has passed since the last invocation. This is useful for optimizing performance in scenarios like search input handlers or window resize events.

  • Adds a new debounce function to the commonUtil package
  • Includes comprehensive test coverage for the debounce functionality
  • Updates documentation with usage examples and API reference

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vitest-report.xml Removed test report file (likely to prevent committing generated test artifacts)
package/commonUtil/index.ts Exports the new debounce utility
package/commonUtil/debounce/index.ts Implements the debounce function with configurable delay
package/commonUtil/debounce/index.test.ts Provides test cases for debounce behavior including timing and multiple invocations
README.md Documents the debounce utility with usage examples and API signature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread package/commonUtil/debounce/index.test.ts Outdated
@klmhyeonwoo
Copy link
Copy Markdown
Member Author

klmhyeonwoo commented Oct 21, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 80.92% 263 / 325
🔵 Statements 80.92% 263 / 325
🔵 Functions 96.15% 25 / 26
🔵 Branches 92.1% 105 / 114
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
package/commonUtil/debounce/index.ts 100% 100% 100% 100%
Generated in workflow #87 for commit 446fec0 by the Vitest Coverage Report Action

@klmhyeonwoo klmhyeonwoo requested a review from prgmr99 October 21, 2025 07:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@prgmr99 prgmr99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!
고생하셨습니다~

@klmhyeonwoo klmhyeonwoo merged commit 5d2c01f into main Oct 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

commonUtil > debounce()

3 participants